package database

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameIchubDbClient = "IchubDbClient"

// init register load
func init() {
	registerBeanIchubDbClient()
}

// register IchubDbClient
func registerBeanIchubDbClient() {
	basedi.RegisterLoadBean(singleNameIchubDbClient, LoadIchubDbClient)
}

func FindBeanIchubDbClient() *IchubDbClient {
	return basedi.FindBean(singleNameIchubDbClient).(*IchubDbClient)
}

func LoadIchubDbClient() baseiface.ISingleton {
	return NewIchubDbClient()
}
